package com.self.finance.service;

import com.self.finance.model.Account;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

public interface AccountService extends IService<Account>{


    boolean transferAccountAmount(long adminId, Long userId, Long coinId, Long id, BigDecimal num, BigDecimal fee,
                                  String businessType,Byte direction,String remark);

    Account findByUserAndCoin(Long userId, String coinName);

    boolean decreaseAccountAmount(long userId, Long userId1, Long coinId, Long id, BigDecimal num, BigDecimal fee, String recharge_into, byte parseByte, String remark);

    void lockUserAmount(Long userId, Long coinId, BigDecimal mum, String type, Long orderId, BigDecimal fee);
}
